

// let re = />|=|<|<=|>=/ ;
let re = />=|>|=|<=|</;

console.log( re.test( 'vue-router@4.0.13' ) );
console.log( re.exec( 'vue-router@4.0.13' ) );
console.log( '- '.repeat(15) );

console.log( re.test( 'vue-router>4.0.13' ) );
console.log( re.exec( 'vue-router>4.0.13' ) );
console.log( '- '.repeat(15) );

console.log( re.test( 'vue-router>=4.0.13' ) );
console.log( re.exec( 'vue-router>=4.0.13' ) );
console.log( '- '.repeat(15) );

console.log( re.test( 'vue-router=4.0.13' ) );
console.log( re.exec( 'vue-router=4.0.13' ) );
console.log( '- '.repeat(15) );

console.log( re.test( 'vue-router<4.0.13' ) );
console.log( re.exec( 'vue-router<4.0.13' ) );
console.log( '- '.repeat(15) );

console.log( re.test( 'vue-router<=4.0.13' ) );
console.log( re.exec( 'vue-router<=4.0.13' ) );